/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package GUI.NVQL;

import GUI.TOOL.ExcelOpener;
import DAO.KhachHangDao;
import DAO.SanPhamDao;
import GUI.TOOL.XuatExcel;
import GUI.MainForm;
import GUI.Var;
import POJO.KhachHangPhanLoai;
import POJO.SanPham;
import java.beans.PropertyVetoException;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JOptionPane;
import javax.swing.table.DefaultTableModel;

/**
 *
 * @author Khoi
 */
public class frPhanLoaiKhachHangTheoSucMua extends javax.swing.JInternalFrame {

	/**
	 * Creates new form frPhanLoaiKhachHangTheoSucMua
	 */
	private DefaultTableModel tbmodel;

	public frPhanLoaiKhachHangTheoSucMua() {
		initComponents();


		String ngay = Var.NGAY.get(Calendar.DATE)
			 + "-" + (Var.NGAY.get(Calendar.MONTH) + 1)
			 + "-" + Var.NGAY.get(Calendar.YEAR);


		txTuNgay.setText(ngay);
		txDenNgay.setText(ngay);

		load();
	}

	public void DefaultFrom() {
		tbmodel = new DefaultTableModel();
		// tao cac cot
		this.tbmodel.addColumn("STT ");
		this.tbmodel.addColumn("Mã KH");
		this.tbmodel.addColumn("Tên khách hàng");
		this.tbmodel.addColumn("Số điện thoại ");
		this.tbmodel.addColumn("Số lần mua");
		this.tbmodel.addColumn("Tổng tiền mặt hàng");

	}

	private Date getNgay(String str) {
		Date tmp = null;
		int[] d = new int[3];
		try {
			String[] s = str.split("-");
			d[0] = Integer.parseInt(s[0]);
			d[1] = Integer.parseInt(s[1]);
			d[2] = Integer.parseInt(s[2]);

			tmp = new Date(d[2], d[1] - 1, d[0]);// co 12 thang trong 1 nam thang bat dau  =0

		} catch (NumberFormatException e) {
			JOptionPane.showMessageDialog(this, "Nhập sai định dạng ngày dd-mm-yyyy (cần nhập ngày có thật). Nhập lại", "Thông báo lỗi", JOptionPane.ERROR_MESSAGE);
			return tmp;
		}

		return tmp;
	}

	private void load() {
		int soDong = 0;
		int slKhach = 0;
		int slHoaDon = 0;
		double tTien = 0.0;
		Date from = null;
		Date to = null;
		try {

			String tn = txTuNgay.getText();
			String dn = txDenNgay.getText();
			from = getNgay(tn);
			if (from == null) {
				txTuNgay.requestFocus();
				return;
			}
			to = getNgay(dn);
			if (to == null) {
				txDenNgay.requestFocus();
				return;
			}


		} catch (Exception e) {
		}
		try {
			soDong = Integer.parseInt(txSoDong.getText().trim());
			if (soDong < 0) {
				JOptionPane.showMessageDialog(this, "Nhập số lớn hơn 0", "Thông báo lỗi", JOptionPane.ERROR_MESSAGE);
				txSoDong.requestFocus();
				return;
			}
		} catch (NumberFormatException e) {
			JOptionPane.showMessageDialog(this, "Nhập sai sô lượng. Nhập lại", "Thông báo lỗi", JOptionPane.ERROR_MESSAGE);
			txSoDong.requestFocus();
			return;

		}
		DefaultFrom();
		ArrayList<KhachHangPhanLoai> ds = new ArrayList<KhachHangPhanLoai>();
		try {
			ds = KhachHangDao.layDanhSach(from, to, soDong);

		} catch (Exception ex) {
			Logger.getLogger(frPhanLoaiKhachHangTheoSucMua.class.getName()).log(Level.SEVERE, null, ex);

		}
		int i = 1;
		for (KhachHangPhanLoai kh : ds) {
			Object[] items = new Object[]{
				i,
				kh.getMaKH(),
				kh.getTenKH(),
				kh.getDienThoai(),
				kh.getTongLanMua(),
				kh.getTongTien()
			};
			i++;
			slKhach += 1;
			slHoaDon += kh.getTongLanMua();
			tTien += kh.getTongTien();
			tbmodel.addRow(items);
		}
		// set lable phia duoi
		lbSoHoaDon.setText(Integer.toString(slHoaDon));
		lbSoKhach.setText(Integer.toString(slKhach));
		lbTongTien.setText(Double.toString(tTien));

		tbPhanLoaiKH.setModel(tbmodel);
		// canh deu the ti le
		int[] va = {10, 10, 30, 15, 15, 20};
		int[] pt = new int[6];
		for (int l = 0; l < 6; l++) {
			pt[l] = tbPhanLoaiKH.getWidth() * va[l] / 100;
			tbPhanLoaiKH.getColumnModel().getColumn(l).setPreferredWidth(pt[l]);

		}
	}

	/**
	 * This method is called from within the constructor to initialize the
	 * form. WARNING: Do NOT modify this code. The content of this method is
	 * always regenerated by the Form Editor.
	 */
	@SuppressWarnings("unchecked")
       // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
       private void initComponents() {

              jPanel1 = new javax.swing.JPanel();
              jLabel5 = new javax.swing.JLabel();
              jPanel2 = new javax.swing.JPanel();
              jbtnLapBaoCao = new javax.swing.JButton();
              jlbTenNV = new javax.swing.JLabel();
              jlbTenNhanVien = new javax.swing.JLabel();
              jButton1 = new javax.swing.JButton();
              jlbTenNhanVien1 = new javax.swing.JLabel();
              txSoDong = new javax.swing.JTextField();
              btXemHoaDonCuaKhachHang = new javax.swing.JButton();
              jlbTenNhanVien2 = new javax.swing.JLabel();
              txTuNgay = new javax.swing.JTextField();
              txDenNgay = new javax.swing.JTextField();
              jPanel3 = new javax.swing.JPanel();
              jScrollPane1 = new javax.swing.JScrollPane();
              tbPhanLoaiKH = new javax.swing.JTable();
              jPanel5 = new javax.swing.JPanel();
              jLabel7 = new javax.swing.JLabel();
              jLabel4 = new javax.swing.JLabel();
              jLabel1 = new javax.swing.JLabel();
              jLabel2 = new javax.swing.JLabel();
              lbSoKhach = new javax.swing.JLabel();
              lbSoHoaDon = new javax.swing.JLabel();
              lbTongTien = new javax.swing.JLabel();

              setClosable(true);
              setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
              setIconifiable(true);
              setMaximizable(true);
              setResizable(true);

              jLabel5.setFont(new java.awt.Font("Tahoma", 0, 24)); // NOI18N
              jLabel5.setText("PHÂN LOẠI KHÁCH HÀNG");

              javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
              jPanel1.setLayout(jPanel1Layout);
              jPanel1Layout.setHorizontalGroup(
                     jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                     .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                            .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jLabel5)
                            .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
              );
              jPanel1Layout.setVerticalGroup(
                     jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                     .addGroup(jPanel1Layout.createSequentialGroup()
                            .addContainerGap()
                            .addComponent(jLabel5)
                            .addGap(0, 0, 0))
              );

              jbtnLapBaoCao.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
              jbtnLapBaoCao.setText("Lập báo cáo");
              jbtnLapBaoCao.setToolTipText("gọi lập phiếu nhập kho");
              jbtnLapBaoCao.addActionListener(new java.awt.event.ActionListener() {
                     public void actionPerformed(java.awt.event.ActionEvent evt) {
                            jbtnLapBaoCaoActionPerformed(evt);
                     }
              });

              jlbTenNhanVien.setText("Từ ngày:");

              jButton1.setText("Lưu ra Excel");
              jButton1.addActionListener(new java.awt.event.ActionListener() {
                     public void actionPerformed(java.awt.event.ActionEvent evt) {
                            jButton1ActionPerformed(evt);
                     }
              });

              jlbTenNhanVien1.setText("Số lượng:");

              txSoDong.setText("10");

              btXemHoaDonCuaKhachHang.setText("Xem các hóa dơn của khách hàng");
              btXemHoaDonCuaKhachHang.setEnabled(false);
              btXemHoaDonCuaKhachHang.addActionListener(new java.awt.event.ActionListener() {
                     public void actionPerformed(java.awt.event.ActionEvent evt) {
                            btXemHoaDonCuaKhachHangActionPerformed(evt);
                     }
              });

              jlbTenNhanVien2.setText("Đến ngày:");

              javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
              jPanel2.setLayout(jPanel2Layout);
              jPanel2Layout.setHorizontalGroup(
                     jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                     .addGroup(jPanel2Layout.createSequentialGroup()
                            .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                   .addGroup(jPanel2Layout.createSequentialGroup()
                                          .addContainerGap(131, Short.MAX_VALUE)
                                          .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                 .addComponent(jlbTenNhanVien, javax.swing.GroupLayout.Alignment.TRAILING)
                                                 .addComponent(jlbTenNhanVien2, javax.swing.GroupLayout.Alignment.TRAILING)
                                                 .addComponent(jlbTenNhanVien1, javax.swing.GroupLayout.Alignment.TRAILING)))
                                   .addGroup(jPanel2Layout.createSequentialGroup()
                                          .addGap(153, 153, 153)
                                          .addComponent(jlbTenNV)))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                   .addComponent(txDenNgay, javax.swing.GroupLayout.PREFERRED_SIZE, 184, javax.swing.GroupLayout.PREFERRED_SIZE)
                                   .addComponent(txSoDong, javax.swing.GroupLayout.PREFERRED_SIZE, 185, javax.swing.GroupLayout.PREFERRED_SIZE)
                                   .addComponent(txTuNgay, javax.swing.GroupLayout.PREFERRED_SIZE, 184, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 45, Short.MAX_VALUE)
                            .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                   .addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                   .addComponent(jbtnLapBaoCao, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                   .addComponent(btXemHoaDonCuaKhachHang, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                            .addGap(67, 67, 67))
              );
              jPanel2Layout.setVerticalGroup(
                     jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                     .addGroup(jPanel2Layout.createSequentialGroup()
                            .addContainerGap()
                            .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                   .addGroup(jPanel2Layout.createSequentialGroup()
                                          .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                                 .addComponent(jlbTenNhanVien)
                                                 .addComponent(txTuNgay, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                          .addGap(9, 9, 9)
                                          .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                                 .addComponent(jlbTenNhanVien2)
                                                 .addComponent(txDenNgay, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                          .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                          .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                                 .addComponent(txSoDong, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                 .addComponent(jlbTenNhanVien1)))
                                   .addGroup(jPanel2Layout.createSequentialGroup()
                                          .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                                 .addComponent(jbtnLapBaoCao)
                                                 .addComponent(jlbTenNV))
                                          .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                          .addComponent(jButton1)
                                          .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                          .addComponent(btXemHoaDonCuaKhachHang)))
                            .addGap(0, 0, Short.MAX_VALUE))
              );

              jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder("Danh sách khách hàng"));
              jPanel3.setName(""); // NOI18N
              jPanel3.setLayout(new javax.swing.BoxLayout(jPanel3, javax.swing.BoxLayout.LINE_AXIS));

              tbPhanLoaiKH.setModel(new javax.swing.table.DefaultTableModel(
                     new Object [][] {

                     },
                     new String [] {
                            "STT", "Mã khách hàng", "Tên khách hàng", "Số điện thoại", "Số lần mua", "Tổng tiền mặt hàng"
                     }
              ) {
                     boolean[] canEdit = new boolean [] {
                            false, true, true, true, true, true
                     };

                     public boolean isCellEditable(int rowIndex, int columnIndex) {
                            return canEdit [columnIndex];
                     }
              });
              tbPhanLoaiKH.addMouseListener(new java.awt.event.MouseAdapter() {
                     public void mouseClicked(java.awt.event.MouseEvent evt) {
                            tbPhanLoaiKHMouseClicked(evt);
                     }
              });
              jScrollPane1.setViewportView(tbPhanLoaiKH);

              jPanel3.add(jScrollPane1);

              jLabel7.setText("Số hóa đơn đã lập:");

              jLabel4.setText("Số lượng khách hàng:");

              jLabel1.setText("Tổng tiền thu được:");

              jLabel2.setText("VNĐ");

              lbSoKhach.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
              lbSoKhach.setText("0");

              lbSoHoaDon.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
              lbSoHoaDon.setText("0");

              lbTongTien.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
              lbTongTien.setText("0");

              javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
              jPanel5.setLayout(jPanel5Layout);
              jPanel5Layout.setHorizontalGroup(
                     jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                     .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel5Layout.createSequentialGroup()
                            .addGap(38, 38, 38)
                            .addComponent(jLabel4)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(lbSoKhach)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jLabel7)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(lbSoHoaDon)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jLabel1)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(lbTongTien)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addComponent(jLabel2)
                            .addGap(99, 99, 99))
              );
              jPanel5Layout.setVerticalGroup(
                     jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                     .addGroup(jPanel5Layout.createSequentialGroup()
                            .addContainerGap()
                            .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                   .addComponent(jLabel7)
                                   .addComponent(jLabel4)
                                   .addComponent(jLabel1)
                                   .addComponent(jLabel2)
                                   .addComponent(lbSoKhach)
                                   .addComponent(lbSoHoaDon)
                                   .addComponent(lbTongTien))
                            .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
              );

              javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
              getContentPane().setLayout(layout);
              layout.setHorizontalGroup(
                     layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                     .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                            .addGap(0, 0, 0)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                   .addComponent(jPanel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                   .addComponent(jPanel1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                   .addComponent(jPanel2, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                   .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                            .addGap(0, 0, 0))
              );
              layout.setVerticalGroup(
                     layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                     .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                            .addGap(0, 0, 0)
                            .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGap(0, 0, 0)
                            .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGap(0, 0, 0)
                            .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, 302, Short.MAX_VALUE)
                            .addGap(0, 0, 0)
                            .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGap(0, 0, 0))
              );

              pack();
       }// </editor-fold>//GEN-END:initComponents

       private void jbtnLapBaoCaoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtnLapBaoCaoActionPerformed

		load();
       }//GEN-LAST:event_jbtnLapBaoCaoActionPerformed

       private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
		// TODO add your handling code here:
		try {
			//     Note that i'm actually saving the file first
			XuatExcel exp = new XuatExcel();
			File file = new File("PhanLoaiKhachHang.xls");
			exp.exportTable(tbPhanLoaiKH, file);
			ExcelOpener opn = new ExcelOpener();
			opn.openTable(file);
		} catch (IOException ex) {
			System.out.println(ex.getMessage());
			ex.printStackTrace();
		}
       }//GEN-LAST:event_jButton1ActionPerformed

       private void btXemHoaDonCuaKhachHangActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btXemHoaDonCuaKhachHangActionPerformed
		// TODO add your handling code here:
		frXemDanhSachHoaDonCuaKhachHang fr = new frXemDanhSachHoaDonCuaKhachHang();
		fr.setVisible(true);
		int dong = tbPhanLoaiKH.getSelectedRow();
		MainForm.jDesktopPane1.add(fr);
		int maKH = Integer.parseInt(this.tbmodel.getValueAt(dong, 1).toString());

		fr.setMaKhachHang(maKH);
		fr.load();
		try {
			fr.setSelected(isSelected);
		} catch (PropertyVetoException ex) {
			Logger.getLogger(GUI.NVGH.frXemThongTinKhachHang.class.getName()).log(Level.SEVERE, null, ex);
		}
       }//GEN-LAST:event_btXemHoaDonCuaKhachHangActionPerformed

       private void tbPhanLoaiKHMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_tbPhanLoaiKHMouseClicked
		// TODO add your handling code here:
		int dong = this.tbPhanLoaiKH.getSelectedRow();
		if (dong != -1) {
			int soLanMua = Integer.parseInt(this.tbmodel.getValueAt(dong, 4).toString());
			if (soLanMua != 0) {
				btXemHoaDonCuaKhachHang.setEnabled(true);
			} else {
				btXemHoaDonCuaKhachHang.setEnabled(false);

			}
		}
       }//GEN-LAST:event_tbPhanLoaiKHMouseClicked
       // Variables declaration - do not modify//GEN-BEGIN:variables
       private javax.swing.JButton btXemHoaDonCuaKhachHang;
       private javax.swing.JButton jButton1;
       private javax.swing.JLabel jLabel1;
       private javax.swing.JLabel jLabel2;
       private javax.swing.JLabel jLabel4;
       private javax.swing.JLabel jLabel5;
       private javax.swing.JLabel jLabel7;
       private javax.swing.JPanel jPanel1;
       private javax.swing.JPanel jPanel2;
       private javax.swing.JPanel jPanel3;
       private javax.swing.JPanel jPanel5;
       private javax.swing.JScrollPane jScrollPane1;
       private javax.swing.JButton jbtnLapBaoCao;
       private javax.swing.JLabel jlbTenNV;
       private javax.swing.JLabel jlbTenNhanVien;
       private javax.swing.JLabel jlbTenNhanVien1;
       private javax.swing.JLabel jlbTenNhanVien2;
       private javax.swing.JLabel lbSoHoaDon;
       private javax.swing.JLabel lbSoKhach;
       private javax.swing.JLabel lbTongTien;
       private javax.swing.JTable tbPhanLoaiKH;
       private javax.swing.JTextField txDenNgay;
       private javax.swing.JTextField txSoDong;
       private javax.swing.JTextField txTuNgay;
       // End of variables declaration//GEN-END:variables
}
